<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://java.sun.com/jsf/composite/rich">
	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>登录</title>
		<link rel="shortcut icon" href="favicon.ico" />
		<link href="./css/styles.css" rel="stylesheet" type="text/css" />
		<script language="javascript" src="./js/common.js"></script>
	</h:head>

	<body bgcolor="#D8DBE4">
	<ui:insert>
	<div id="light" class="white_content">
	
		<div align="center"><img src="#{facesContext.externalContext.requestContextPath}/images/common/loading.gif" /><br /><br />
			请稍候...
		</div>
	</div>
	<div id="fade" class="black_overlay"></div>
	<div class="body_login">
			<div class="login_form">
				<h:form>

				<div class="title_tip">
					请输入登录信息
				</div>
				<br />
				
                
                <div class="user_ico"></div>
                    <font class="label">用户名：</font>
                    <h:inputText id="username" value="#{authenticationBean.username}" validator="#{authenticationBean.validateInput}">
                    </h:inputText>
                    <font id="errorfont"><h:message for="username"></h:message></font>

				<br/>
                <br/>
                <div class="pwd_ico"></div>
				<font class="label">密&nbsp;&nbsp;码：</font>
				<h:inputSecret id="password" value="#{authenticationBean.password}" validator="#{authenticationBean.validateInput}">
				</h:inputSecret>
				<font id="errorfont"><h:message for="password"></h:message></font>


				
				
				<div class="error_text"><h:outputText value="#{authenticationBean.message}" ></h:outputText></div>
				<div class="login_btn">
					<h:panelGrid columns="3" style="width: 203px">
					
					<h:commandButton id="logon" action="#{authenticationBean.login}" value="登录" onclick = "javascript:ShowPanel();">
					</h:commandButton>  
					<h:outputLabel></h:outputLabel>
					<h:commandButton value="重置" action="#{authenticationBean.reset}"></h:commandButton>
					</h:panelGrid>
					
				</div>
			 </h:form>
			</div>
		</div>
	</ui:insert>	
	</body>
</html>
